﻿<%@ Page Language="C#" MasterPageFile="~/Frame.Master" AutoEventWireup="true" CodeBehind="fmCarBreakRuleList.aspx.cs"
    Inherits="Auto.BusMan.fmCarBreakRuleList" Title="违章记录列表" %>

<%@ Register Assembly="Auto.WebControls" Namespace="Auto.WebControls" TagPrefix="ComboBox" %>
<%@ Register Src="UserControl/ucDDLKeepDiv.ascx" TagName="ucDDLKeepDiv" TagPrefix="uc1" %>
<%@ Register Src="UserControl/ucBusIDFromBusIDNO.ascx" TagName="ucBusIDFromBusIDNO"
    TagPrefix="uc2" %>
<%@ Register Src="UserControl/ucDriverDDLSelector.ascx" TagName="ucDriverDDLSelector"
    TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">
    <div class="TitleDivStyle">
        <asp:Label ID="Label1" runat="server" Text="违章记录列表"></asp:Label>
    </div>
    <table border="0" cellspacing="1" cellpadding="0" width="825px">
        <tr >
            <td>
                <div class="OperateStyle">
                    <table>
                        <tr>
                            <td>
                                公司：
                                <uc1:ucDDLKeepDiv ID="ucDDLKeepDiv1" runat="server" />
                                申请时间: 从<ComboBox:DateTextBox ID="txtBreakRuleTimeStart" runat="server" Width="100px"></ComboBox:DateTextBox>至
                                <ComboBox:DateTextBox ID="txtBreakRuleTimeEnd" runat="server" Width="100px"></ComboBox:DateTextBox>
                                &nbsp;车辆牌号：<uc2:ucBusIDFromBusIDNO ID="ucBusIDFromBusIDNO1" runat="server" Width="80px" />
                            </td>
                            <td>
                                驾驶员:
                            </td>
                            <td>
                                <uc3:ucDriverDDLSelector ID="ucDriverDDLSelector1" runat="server" />
                            </td>
                            <td>
                                <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" CssClass="button_bak" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr >
            <td width="800px">
                <asp:GridView ID="GridView1" runat="server" CssClass="GridViewStyle" GridLines="Horizontal"
                    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="825px"
                    DataKeyNames="DocID" CaptionAlign="Left" OnPageIndexChanging="GridView1_PageIndexChanging"
                    OnRowDeleting="GridView1_RowDeleting" OnRowDataBound="GridView1_RowDataBound">
                    <FooterStyle CssClass="GridViewFooterStyle" />
                    <RowStyle CssClass="GridViewRowStyle" />
                    <EditRowStyle CssClass="GridViewEditRowStyle" />
                    <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                    <PagerStyle CssClass="GridViewPagerStyle" />
                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                    <Columns>
                        <asp:BoundField DataField="DocID" HeaderText="序号">
                            <ItemStyle Width="40px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="单位名称">
                            <ItemTemplate>
                                <%# Eval("CompanyName")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="车辆牌号">
                            <ItemTemplate>
                                <%# Eval("BusID")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="驾驶员姓名">
                            <ItemTemplate>
                                <%# Eval("DriverName")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="违章时间">
                            <ItemTemplate>
                                <%# Eval("BreakRuleTime","{0:yyyy-MM-dd}")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="违章性质">
                            <ItemTemplate>
                                <%# Eval("BreakRuleType")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="违章地点">
                            <ItemTemplate>
                                <%# Eval("BreakRuleLocation")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="违章记录情况">
                            <ItemTemplate>
                                <%# CutString(Eval("BreakRuleNote"))%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="罚款">
                            <ItemTemplate>
                                <%# Eval("Forfeit")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                          <asp:TemplateField HeaderText="查看">
                            <ItemTemplate>
                                <asp:HyperLink ID="hyShow" runat="server" Target="_blank" NavigateUrl='<%# "AddForm/fmCarBreakRuleAddForm.aspx?DocID=" + Eval("DocID") %>'>查看</asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "fmCarBreakRuleManager.aspx?DocID=" + Eval("DocID") %>'>修改</asp:HyperLink>
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" ToolTip="点击删除"
                                    OnClientClick="return confirm('真的要删除吗?');" CommandArgument='<%# Eval("DocID") %>'>删除</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerSettings Position="Bottom" FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast"
                        NextPageText="Next" PreviousPageText="Previous" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
